package com.chenjie.executor.day05;

/**
 * 自定义task
 */
public class Task implements Runnable{
    @Override
    public void run() {
        //获取当前正在执行的线程
        Thread thread = Thread.currentThread();
        //输出线程名称
        System.out.println(thread.getName());
    }
}
